package com.pxmeta.dynamic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxmeta.dynamic.entity.Dynamic;
import com.pxmeta.dynamic.entity.Mail;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wcl
 * @since 2022-08-17
 */
public interface IMailService extends IService<Mail> {


    /**
     * 发送互动通知
     * @param type 1评论，2回复，3点赞，4关注
     * @param userId
     */
    void sendInteractMessage(Integer type, Long userId, Long targetUserId , String message, Dynamic dynamic);


    /**
     * 发送普通通知
     * @param circleId
     */
    void sendNoticeMessage(Long targetUserId,Long circleId, String message);

    /**
     * 关注通知
     * @param type
     * @param userId
     * @param targetUserId
     * @param circleId
     */
    void sendInteractFollowMessage(Integer type, Long userId, Long targetUserId, Long circleId);


    /**
     * 获取消息数
     * @param type 0全部，1互动，2通知
     * @return
     */
    Long getCount(Long userId, Long circleId, Integer type);


}
